package com.googlecode.imanager.client.value.format;

import com.googlecode.imanager.client.value.ValueType;

/**
 * @author wellsantos@wellsantos.com
 * @since 0.01
 */
public class NumberFormatter extends Formatter<Double> {

    private static final long serialVersionUID = 1L;

    @Override
    public String format(Double value) {
        // TODO format
        return String.valueOf(value);
    }

    @Override
    public String format(Object value, ValueType valueType) {
        if (value instanceof Double){
            return format((Double) value);
        }
        return super.format(value, valueType);
    }

}
